package com.study.crud.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.study.crud.mapper.UserMapper;
import com.study.crud.model.user.User;
import com.study.crud.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findListBy4(String uName) {
        return userMapper.findListBy4(uName);
    }

    @Override
    public List<User> findAll(User user) {
        return userMapper.findAll(user);
    }

    @Override
    public Integer findNumByEid(Integer eid) {
        return userMapper.findNumByEid(eid);
    }

    @Override
    public Integer findNumByJid(Integer jid) {
        return userMapper.findNumByJid(jid);
    }

    /*
    @Override
    public List<UserDto> selectAll() {
        return userMapper.selectAll();
    }

    @Override
    public UserDto getUserDtoById(Integer userId) {
        return userMapper.getUserDtoById(userId);
    }
    */
}
